%---------------------------------------------------------------------------%
%-                                                                         -%
%-                        User-defined Commands                            -%
%-                                                                         -%
%---------------------------------------------------------------------------%
%->> Identification
%---------------------------------------------------------------------------%
\NeedsTeXFormat{LaTeX2e}%
\ProvidesPackage{custom}[2014/10/01 v1.0 LaTeX macros package]%
%---------------------------------------------------------------------------%
%->> Declare options
%---------------------------------------------------------------------------%
%-
%-> Handle non-implemented options
%-
\DeclareOption*{%
    \PackageWarning{custom}{Unknown option '\CurrentOption'}%
}
%-
%-> Terminates all options processing
%-
\ProcessOptions\relax%
%---------------------------------------------------------------------------%
%->> User added packages
%---------------------------------------------------------------------------%
%- this part adds normal packages
%---------------------------------------------------------------------------%
%->> User defined commands
%---------------------------------------------------------------------------%
\def\d{\mathop{}\!\mathrm{d}} %-- 一阶微分符号d
\def\l{\lambda}\def\L{\Lambda}
\def\D{\Delta}
\def\de{\delta}
\def\gm{\gamma}
\def\a{\alpha}
\def\b{\beta}
\def\div{{\rm div}}
%摘要
\newcommand{\summary}[1]{
  \noindent {\heiti 摘要}: #1 \\
}
%关键词
\newcommand{\keywords}[1]{
  \noindent {\heiti 关键词}: #1
}
%生成头部
\newcommand{\makeheader}{
  %论文首页左上角成绩框
  \noindent
  \begin{tabularx}{4.45cm}%
    {|*{4}{>{\centering\arraybackslash}X|}}
    \hline
    \rule{0pt}{0.8cm}\wuhao 成 \hspace{1.5em} 绩：  {\rule{20mm}{0.4pt}} \\ \cline{2-3}
    \rule{0pt}{0.8cm}\wuhao 指导教师： {\rule{20mm}{0.4pt}}              \\ \hline
  \end{tabularx}
  \vskip 1.5cm
  %论文首页标题信息
  \begin{center}
    \sanhao \heiti \theTitle
  \end{center}
  {
  \fangsong
  \begin{center}
    \theMajor  \quad  \theNo \quad  \theAuthor
  \end{center}
  \begin{center}
    指导教师:\   \theTutor   \quad  依托课程:\  \theLecture
  \end{center}
  }
  %论文摘要/关键词
  {\wuhao
    \summary{\theSummary}
    \keywords{\theKeywords}
  }
\vskip 0.5cm
}
%参考文献
\newcommand{\references}[1]{
  \renewcommand\refname{\heiti \xiaosihao 参考文献}
  \begin{thebibliography}{100}
    \wuhao #1
  \end{thebibliography}
}
%--------------------------------------------
%    请在此处添加自定义命令
%--------------------------------------------

%---------------------------------------------------------------------------%
\endinput